package adminUserLoginLogModel

import (
	commonModel "gitee.com/krio/ginc/example/internal/common/model/common"
)

const AdminUserLoginLogTableName = "admin_user_login_log"

func (*AdminUserLoginLog) TableName() string {
	return AdminUserLoginLogTableName
}

type AdminUserLoginLog struct {
	commonModel.Basic `xorm:"extends"`
	UserId            int64  `xorm:"bigint(20) 'user_id' comment('用户id')"`
	UserName          string `xorm:"varchar(50) 'user_name' comment('用户名称')"`
	UserToken         string `xorm:"varchar(255) 'user_token' comment('使用token')"`
	LoginIp           string `xorm:"varchar(20) 'login_ip' comment('登录ip')"`
	LoginAgent        string `xorm:"text 'login_agent' comment('浏览器和操作系统信息')"`
	LoginResult       string `xorm:"varchar(200) 'login_result' comment('登录结果')"`
}
